﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="NewMessage.aspx.cs" Inherits="LizzabethBrownRealEstate.Views.Home.NewMessage" %>
<%@ Import Namespace="LizzabethBrownRealEstate.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<form id="frmRegister" method="post" action="<%= Url.Action("AddMessage", "Users") %>" >
    <div style="text-align:center">
        <div style="margin-top:35px">
        <% LBRDataContext dc = new LBRDataContext(); %>
        <fieldset id="fldRegister" style="width:450px;">
            <legend>New Message</legend>
            <table>
                <tr class="addPropertyRow">
                    <td class="addPropertyLabel"><label class="label" for="txtUserName">Category:&nbsp;</label></td>
                    <td class="addPropertyField"><%= Html.Select("CategoryId", dc.Categories, "Name", "CategoryId", null) %></td>
                </tr>
                <tr class="addPropertyRow">
                    <td class="addPropertyLabel"><label class="label" for="txtFirst">Message:&nbsp;</label></td>
                    <td class="addPropertyField"><%= Html.TextArea("MessageText", "", 5, 30) %></td>
                </tr>
            </table> 
        </fieldset>
        </div>
        <div style="margin-top:15px; margin-bottom:15px">
            <input type="submit" id="btnSubmit" name="btnSubmit" value="Save" />
            <button onclick= "window.history.back(); return false;">Done</button>
        </div>
    </div>
</form>
</asp:Content>
